package day05;

import java.util.Arrays;

public class SystemDemo {
    public static void main(String[] args) {
        // System.exit(0)；虚拟机运行停止
        long start = System.currentTimeMillis();//获取当前时间
        int[] arr1 = {1, 2, 4, 3,5};
        //Arrays.sort(arr1);
       // System.out.println(Arrays.toString(arr1));
        System.out.println();
        int index=2;
      //  int[] arr2 = new int[10];
        //把arr1中的数据拷贝到arr2中
        //删除数组中索引为index的数据*-
        System.arraycopy(arr1, index+1, arr1, index, arr1.length-index-1);
        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);
        }

    }
}
